package ${basePackage}.pojo.dao.${module}.${currModule};

import com.unswift.annotation.api.ApiEntity;
import com.unswift.annotation.api.ApiField;
import com.unswift.annotation.api.ApiConstructor;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import ${basePackage}.pojo.dao.SingleDo;
import ${basePackage}.pojo.dao.sql.Sql;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@SuppressWarnings("serial")
@JsonInclude(Include.NON_NULL)
@ApiEntity(value="${tableComment!''}单条记录删除实体", author="${username}", date="${date}", version="1.0.0")
public class ${entityName}DeleteDo implements SingleDo{
	
	<#if fieldList??>
		<#list fieldList as field>
			<#if !field.genericsField && isPrimaryKey && field.primaryKey>
	@ApiField("${field.columnComment!''}")
	private ${field.fieldType} ${field.fieldSampleName};
	
			</#if>
		</#list>
	</#if>
	@ApiField("查询的sql对象")
	private Sql sql;
	
	@ApiConstructor("默认构造")
	public ${entityName}DeleteDo(){
		super();
	}
	
	@ApiConstructor(value="带参构造", params={@ApiField("删除的主键"), @ApiField("自定义sql")})
	public ${entityName}DeleteDo(<#list primaryKeyList as field>${field.fieldType} ${field.fieldSampleName}, </#list>Sql sql){
		super();
		<#list primaryKeyList as field>
		this.${field.fieldSampleName}=${field.fieldSampleName};
		</#list>
		this.sql=sql;
	}
	
}
